<template>
  <div class="contain">
    <el-container>
      <el-aside width="200px"
        ><el-col :span="12">
          <el-menu
            default-active="1"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"
          >
            <el-menu-item index="1">
              <i class="el-icon-menu"></i>
              <span slot="title">我的文件</span>
            </el-menu-item>

            <el-menu-item index="2" @click.native="abs()">
              <i class="el-icon-menu"></i>
              <span slot="title">新建文件</span>
            </el-menu-item>

            <!-- <el-menu-item index="3">
              <i class="el-icon-setting"></i>
              <span slot="title">导航四</span>
            </el-menu-item> -->
          </el-menu>
        </el-col></el-aside
      >

      <el-container>
        <!-- <el-header>
          <div class="el-header-son">

          </div>

        </el-header> -->
        <el-main>
          <!-- <router-view></router-view> -->
          <boxchild ref="child"></boxchild>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import boxchild from "@/components/childbox.vue";
export default {
  name: "moren",
  components: {
    boxchild,
  },
  data() {
    return {
      boxlist: {},
    };
  },
  methods: {
    abs() {
      this.$refs.child.ads();
    },
  },
};
</script>

<style scopde>
.el-aside .el-col-12 {
  width: 100% !important;
}

.contain {
  width: 100vw;
  height: 100vh;
}

.el-aside {
  background-color: rgb(84, 92, 100);
  color: #333;
  text-align: center;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}

/* .el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
} */

.el-container {
  height: 100%;
}
</style>